//@flow


/**
 * 导航栏用 自带返回功能的返回按钮
 */

import React, { Component } from 'react';
import { 
    View,
    TouchableOpacity,
 } from 'react-native';
import Icon from "react-native-vector-icons/AntDesign";
import { Navigate } from '../common/navigate';


export class NavBackBtn extends Component {
    render(){
        return (
            <TouchableOpacity
                style={{width:40,height:'100%'}}
                onPress={()=>{
                    Navigate.Back()
                }}>
                <Icon name="left" size={20} color="white" style={{alignSelf: 'center',}}/>
            </TouchableOpacity>
        )
    }
}

